<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
	
	<?php
		require_once ('appvars.php');
		require_once ('connectvars.php');

		$dbc=mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME);
		
		$query="select * from guitarwars order BY score DESC";
		
		$data=mysqli_query($dbc,$query);
		
		echo '<table>';
		
		while ($row=mysqli_fetch_array($data)){
			echo '<tr class="scorerow"><td><strong>'. $row['name'].'</strong></td>';
			echo '<td>'. $row['date'] .'</td>';
			echo '<td>'. $row['score'] .'</td>';
			echo '<td><a href="removescore.php?id='. $row['id'].'">Remove</a></td></tr>';
		}
		echo '</table>';
		
		mysqli_close($dbc);
	?>
</body>
</html>